const express = require('express');
const router = express.Router();
const notificationController = require('../controllers/notification.controller');
const { verifyToken } = require('../middlewares/auth.middleware');

// 获取用户通知列表
router.get('/getNotificationByUserId', verifyToken, notificationController.getNotificationByUserId);

// 更改通知状态为已读
router.get('/updateNotificationRead', verifyToken, notificationController.updateNotificationRead);

module.exports = router;
